package com.itheima.a04objectdemo;

public class ObjectDemo2 {
    public static void main(String[] args) {
        //public boolean equals(Object obj)
        //比较两个对象是否相等
        Student s1 = new Student("张三",18);
        Student s2 = new Student("张三",18);
        System.out.println(s1.equals(s2));
    }
}
